package xdclass_websocket.controller.v3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.messaging.handler.annotation.MessageMapping;
import org.springframework.stereotype.Controller;
import xdclass_websocket.model.InMessage;
import xdclass_websocket.service.WebSocketService;


/**
 * 
 * 功能描述：简单版单人聊天 *

 */
@Controller
public class V3ChatRoomContoller {

	@Autowired
	private WebSocketService ws;
	
	
	@MessageMapping("/v3/single/chat")
	public void singleChat(InMessage message) {
		
		ws.sendChatMessage(message);
		
		
	}
	
	
	
}
